package com.hoas.comparedb.mysql;

import org.apache.commons.dbcp2.BasicDataSource;

public class DSFactory {

    public static BasicDataSource createDataSource(String driver, String url, String user, String pass) {
        BasicDataSource ds = new BasicDataSource();
        ds.setDriverClassName( driver);
        ds.setUrl(url);
        ds.setUsername( user );
        ds.setPassword( pass );
        return ds;
    }


}
